package ysq.xyg.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 轮播图
 *
 * @author congcong tao
 * @date 2018/9/28 11:51
 */
@Data
@Table(name = "web_banner")
public class Banner implements Serializable {

    @Id
    private String id;

    /**
     * 类型1、网页端，2、手机端
     */
    private String type;

    private String title;

    private String image;

    @Column(name = "order_num")
    private Integer orderNum;

    /**
     * 有效状态1、有效2、无效
     */
    private String status;

    private String url;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;


    public Banner() {
    }

    public Banner(String type, String status) {
        this.type = type;
        this.status = status;
    }
    

}